package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.ActivityLog;

import java.util.List;

import vn.edu.ptithcm.pim.dao.ActivityLogDao;
import vn.edu.ptithcm.pim.query.ActivityLogQuery;

@SuppressWarnings({ "rawtypes" })
public class ActivityLogService {
	private ActivityLogDao activityLogDao;

	public ActivityLogDao getActivityLogDao() {
		return activityLogDao;
	}

	public void setActivityLogDao(ActivityLogDao activityLogDao) {
		this.activityLogDao = activityLogDao;
	}

	public void save(ActivityLog activityLog) {
		activityLogDao.save(activityLog);
	}

	public void saveOrUpdate(ActivityLog activityLog) {
		activityLogDao.saveOrUpdate(activityLog);
	}

	public void lock(ActivityLog ActivityLog) {
		activityLogDao.lock(ActivityLog);
	}

	public void delete(ActivityLog activityLog) {
		activityLogDao.delete(activityLog);
	}

	public ActivityLog merge(ActivityLog activityLog) {
		return activityLogDao.merge(activityLog);
	}

	public ActivityLog findById(java.lang.Long id) {
		return activityLogDao.findById(id);
	}

	public List findByExample(ActivityLog activityLog) {
		return activityLogDao.findByExample(activityLog);
	}

	public List getAll() {
		return activityLogDao.getAll();
	}

	public List<ActivityLog> findByQuery(Long projectId,
			ActivityLogQuery activityLogQuery, int max, int offset) {
		return activityLogDao.findByQuery(projectId, activityLogQuery, max,
				offset);
	}

	public int countByQuery(Long projectId, ActivityLogQuery activityLogQuery) {
		return activityLogDao.countByQuery(projectId, activityLogQuery);
	}

	public void deleteById(java.lang.Long id) {
		activityLogDao.deleteById(id);
	}

	public void deleteByProjectId(java.lang.Long id) {
		activityLogDao.deleteByProjectId(id);
	}
}
